<?php 
require('./conn.php');
$id = $_GET['id'];
$sql = "delete from msg where id = $id ";
if(!mysql_query($sql)){
	echo mysql_error();
	exit;
}else{
	//echo '删除成功';
	header('Location: msglist.php');
}